﻿@using VirtualPress.Infrastructure.Entities.Entity;
@{
    ViewBag.Title = "编辑新闻动态";
    Layout = "/Areas/WorkSpace/Views/Shared/_WorkSpace.cshtml";
}
<div id="content-header">
    <h1>
        新闻动态</h1>
</div>
<div id="breadcrumb">
    <a href="/WorkSpace/press/index" class="tip-bottom"><i class="icon-home"></i>起始页</a> 
    <a href="/workspace/press/news">新闻动态</a> <a class="current">添加新闻动态</a>
</div>
<div class="container-fluid">
    <div class="row-fluid">
        <div class="span12">
            <div class="widget-box">
                <div class="widget-title">
                    <span class="icon"><i class="icon-pencil"></i></span>
                    <h5>
                        新闻动态</h5>
                    <h5 style="float:right;color:Red;">*为必填</h5>
                </div>
                <div class="widget-content nopadding">
                    <form id="form-wizard" class="form-horizontal" method="post" enctype="multipart/form-data" action="/WorkSpace/Press/AddNews">
                    <div id="form-wizard-1" class="step">
                        <div class="control-group">
                            <label class="control-label">
                                新闻标题 (*)</label>
                            <div class="controls">
                                <input id="txtTitle" type="text" name="Title" class="{required:true}" />
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label">
                                责任编辑 (*)</label>
                            <div class="controls">
                                <input id="txtDisplayEditor" name="DisplayEditor" type="text" class="{required:true}" />
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label">
                                摘录来源</label>
                            <div class="controls">
                                <input id="txtForm" name="Form" type="text"/>
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label">
                                内容 </label>
                            <div class="controls">
                                <script name="Content" id="editor" type="text/plain"></script>
                            </div>
                        </div>
                    </div>
                    <div class="form-actions">
                        <a class="btn btn-primary" href="/workspace/press/news">返回</a>
                        <input id="next" class="btn btn-primary" type="submit" />
                        <div id="status">
                        </div>
                    </div>
                    <div id="submitted">
                    </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
@section tail
{
    <script type="text/javascript" src="/scripts/jquery.validate.js"></script>
    <script type="text/javascript" src="/scripts/unicorn.wizard.js"></script>
    <script type="text/javascript" src="/scripts/jquery.metadata.js"></script>
    <script type="text/javascript" src="/scripts/jquery.wizard.js"></script>
    <script type="text/javascript" charset="utf-8" src="/Scripts/UEditor/editor_config.js"></script>
    <script type="text/javascript" charset="utf-8" src="/Scripts/UEditor/editor_all_min.js"></script>
    <script type="text/javascript">
        $(function () {
            $('#liknews').addClass('open active');
        });
        UE.getEditor('editor');
    </script>
}
